<template>
	<view>
		<view class="qiuzhu" :style="{
			 height:!sc?'303rpx':'240rpx'
		 }" v-for="(item,index) in 5">
			<view style="
		display: flex;
		justify-content: space-between;">
				<view class="qiuzhu_1">
					租
				</view>
				<view class="qiuzhu_2">
					<text class="qiuzhu_2_1">郑州市二七火车站附近</text>
					<view class="qiuzhu_2_2">
						<text>店铺类型:美甲店</text> <text> 面积:30-50㎡</text>
					</view>
					<text class="qiuzhu_2_4">电话：(VIP可见)</text>
					<text class="qiuzhu_2_3">发布时间：2021.11.21</text>
				</view>
			</view>

			<view class="botton" v-if="!sc">
				<text @click="fb(1)" :style="{
				background:!index?'#7D7D7D':'',
				opacity:!index? '0.5':'',
				border: !index?'':'1px solid #FF1B1B',
				color:!index?'#FFFFFF':' #FF1B1B'
			}">置顶</text>
				<text @click="fb(2)" :style="{
				background:!index?'#FF1B1B':'',
				opacity:!index? '0.9':'',
				border: !index?'':'1px solid #FF1B1B',
				color:!index?'#FFFFFF':' #FF1B1B'
			}">下架</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['img', 'sc'],
		name: "qiu-zhu",
		data() {
			return {

			};
		},
		methods: {
			fb(a) {
				this.$emit('fb', a)
			},
		}
	}
</script>

<style lang="scss">
	.botton {
		margin-top: 20rpx;
		text-align: right;

		text:nth-of-type(1) {
			display: inline-block;
			width: 158rpx;
			height: 60rpx;
			background: #FFFFFF;
			border-radius: 30rpx;
			text-align: center;
			line-height: 60rpx;
			font-size: 26rpx;
			font-family: OPPOSans;
			font-weight: 500;
		}

		text:nth-of-type(2) {
			margin-left: 20rpx;
			display: inline-block;
			width: 158rpx;
			height: 60rpx;
			// background: #FFFFFF;
			// border: 1px solid #FF1B1B;
			border-radius: 30rpx;
			text-align: center;
			line-height: 60rpx;
			font-size: 26rpx;
			font-family: OPPOSans;
			font-weight: 500;
			// color: #FF1B1B;
		}
	}

	.qiuzhu {
		width: 92%;
		padding: 30rpx 30rpx;
		box-sizing: border-box;
		border-radius: 16rpx;
		margin: 0 auto 20rpx;
		background-size: 100%;
		background-color: white;
		background-repeat: no-repeat;


		.qiuzhu_1 {
			width: 46rpx;
			height: 46rpx;
			background: #FFFFFF;
			border: 2rpx solid #FF1B1B;
			text-align: center;
			border-radius: 50%;
			font-size: 24rpx;
			font-family: OPPOSans;
			font-weight: 500;
			color: #FF1B1B;
			line-height: 46rpx;
		}

		.qiuzhu_2 {
			width: 90%;

			.qiuzhu_2_1 {
				font-size: 30rpx;
				font-family: OPPOSans;
				font-weight: bold;
				color: #181818;
			}

			.qiuzhu_2_2 {
				margin: 20rpx 0 15rpx 0;
				display: flex;
				justify-content: space-between;
				width: 70%;

				text {
					display: inline-block;
				}

				text {
					font-size: 24rpx;
					font-family: OPPOSans;
					font-weight: 500;
					color: #666666;
				}
			}

			.qiuzhu_2_4 {
				font-size: 20rpx;
				font-family: OPPOSans;
				font-weight: 500;
				color: #999999;
				margin-top: 10rpx;
			}

			.qiuzhu_2_3 {
				font-size: 20rpx;
				font-family: OPPOSans;
				font-weight: 500;
				margin-top: 10rpx;
				color: #999999;
			}

			text {
				display: block;
			}

		}
	}
</style>
